home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Sound
/
MrMPEG
/
PlayMain.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-11-22
|
2KB
|
55 lines
/* PlayMain.rexx */
options results; address MrMPEG
MUIA_List_Active = 0x8042391c; MUIA_Disabled = 0x80423661
list ID SLIST ATTRS MUIA_List_Active
list ID SLIST POS result
if result ~= '' then do
parse var result filename','dummy','dummy2
call GetInfo()
image ID RWND ATTRS MUIA_Disabled 1
image ID FFWD ATTRS MUIA_Disabled 1
slider ID PROG ATTRS MUIA_Disabled 1
slider ID PRIO ATTRS MUIA_Disabled 1
cycle ID DIVS
if result = '1:1' then division = '-d1'
else if result = '1:2' then division = '-d2'
else division = '-d4'
cycle ID QUAL
if result = 'Low' then quality = '-q0'
else if result = 'Medium' then quality = '-q1'
else quality = '-q2'
knob ID VOLM; volume = '-v'result
check ID MONO; stat = result
if stat = 0 then stereo = '-m'
else stereo = ''
check ID FILT; filter = '-f'result
slider ID PRIO; priority = '-p'result
cycle ID MAXF
if result = 'OFF' then maxf = ''
else maxf = '-F'result
cycle ID MIXF
if result = 'OFF' then mixf = ''
else mixf = '-x'result
popasl ID PATH; pathname = result
setvar current_song filename
cycle ID ABUF; abuffer = '-t'result * 1000
cycle ID IBUF; ibuffer = '-b'result
slider ID PROG; position = result * 1000
setvar current_time right(result % 60, 2, 0)":"right(result // 60, 2, 0)
address command 'run <>NIL: rx Timer.rexx'
check ID PLAY ATTRS MUIA_Disabled 0
address command pathname'MPEGA >NIL: -n -w -S' position division quality stereo volume filter mixf maxf priority filename abuffer ibuffer
image ID RWND ATTRS MUIA_Disabled 0
image ID FFWD ATTRS MUIA_Disabled 0
slider ID PROG ATTRS MUIA_Disabled 0
slider ID PRIO ATTRS MUIA_Disabled 0
end /* of if result */
else do
call Stop()
check ID PLAY ATTRS MUIA_Disabled 0
end
return